home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-01 | 980 b | 28 lines | [TEXT/CWIE] |
- #if justacomment
-
- Part of the process of dimming an editable text item is to change
- it to a static text item. This can change the appearance of the
- text, if there is too much text for the width of the item. The
- reason is that the current editable item is drawn by TextEdit,
- using a destRect twice as wide as the viewRect, whereas static text
- items and inactive editable text items are drawn using TextBox,
- with destRect and viewRect having the same width. For the same
- reason, updating the window can change the appearance of an editable
- text item, if it was the active item when originally drawn but
- is no longer active. To see this, run the demo application; the
- two editText items on the left should look like this:
-
- Edit Text
- Too
-
- If you move the insertion point to the lower box, and then click
- the Erase & Update button, they will change to
-
- Edit Text
- Too lengthy
-
- If you then click the box to dim those items, the lower item will
- go back to being "Too".
-
- #endif
-